import React,{useState} from 'react'
import { Modal } from 'antd-mobile'
import img from './img/屏幕截图 2025-09-22 082810.png'
const App = () => {
  const [visible, setVisible] = useState(false)
  return (
    <div>
      <button onClick={() => {
          setVisible(true)
        }}>登录</button>
      <Modal
        visible={visible}
        content={
          <img src={img} alt='' style={{width:'100%'}}></img>
        }
        closeOnAction
        onClose={() => {
          setVisible(false)
        }}
      />
    </div>
  )
}

export default App
